/*
 * @Author: llch
 * @Date: 2020-06-01 15:26:07
 * @LastEditTime: 2020-06-02 17:01:41
 * @LastEditors: Please set LastEditors
 * @Description: 每一条词条数据
 * @FilePath: \idiom_demo\assets\script\game\IdiomData.ts
 */ 

export class IdiomData {
    public id: number = 0;          // 词条id
    public chars: string = null;    // 完整成语，例如"一马当先"
    public pinyin: string = null;   // 词条拼音
    public note: string = null;     // 词条出处和释义

    // 构造方法
    constructor(idiomJson) {
        this.id = idiomJson.id - 1;
        this.chars = idiomJson.chars;
        this.pinyin = idiomJson.pinyin;
        this.note = idiomJson.note;
    }
}